package com.pj.compose.ui.page.widget.tabsegment

import androidx.compose.runtime.Composable
import androidx.navigation.NavController
import com.pj.compose.NavRouters.WIDGET_TAB_VIEWPAGE_PAGE
import com.pj.compose.ui.compose.AppTopBarColumn
import com.pj.compose.ui.compose.SimpleListView
import kotlinx.coroutines.launch

@Composable
fun TabSegmentPage(navController: NavController) {
    AppTopBarColumn(title = "Button", backClick = { navController.popBackStack() }) {
        SimpleListView(
            items = listOf(
                "固定宽度，内容均分",
                "内容自适应，超过父容器则滚动",
                "内容自适应，添加weight控制间距",
            )
        ) {
            navController.navigate("${WIDGET_TAB_VIEWPAGE_PAGE}/$it")
        }
    }
}